package com.yelink.metrics.config;

import com.yelink.metrics.api.DefaultMetricsApiImpl;
import com.yelink.metrics.api.MetricsApi;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author idea
 */
@Configuration
public class MetricsConfig {

    @Bean
    @ConditionalOnMissingBean
    public MetricsApi getMetricsApi() {
        return new DefaultMetricsApiImpl();
    }

}
